<?php echo Bitter::doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <head>
  <title></title>
  
  <?php showTpl('meta'); ?>
 </head>
 <body>
  <?php showTpl('header'); ?>
  <div class="container">
   <?php showTpl('navigation'); ?>
   <div class="main">
    <div class="content">
     <?php foreach( $posts as $post ): ?>
       <h1><?php echo $post['title']; ?></h1>
       <p><?php echo $post['datum']; ?></p>
       <div class="postbar">
         <a href="../view/edit_post.php?pid=<?php echo $post['id']; ?>">edit</a>
       </div>
     <?php endforeach; ?>
    </div>
   </div>
   <div class="clearer"><span></span></div>
   <a href="../view/new_post.php?tid=<?php echo $tid ?>&stream=<?php echo $stream ?>" >New Post</a>
   <?php showTpl('footer'); ?>
  </div>
 </body>
</html>
